package com.myjob.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

/**
 * @author Chen Yuan
 * @create 2021-01-23  14:58
 */
@Controller
@Slf4j
@RequestMapping("/oa/company")
public class CompanyController {
	@GetMapping("/companyInfoPage")
	public String companyInfoPage(){
		return "/common/company/companyInfo";
	}

	@GetMapping("/companyDetailsPage/{companyId}")
	public String companyDetailsPage(@PathVariable("companyId") Long companyId, Model model){
		model.addAttribute("companyId", companyId);
		return "/common/company/companyDetails";
	}

	@GetMapping("/companyListingPage")
	public String companyListingPage(){
		return "/common/company/companyListing";
	}

	@GetMapping("/companyManagementPage")
	public String companyManagementPage(){
		return "/common/company/companyManagement";
	}

	@GetMapping("/createHRPage")
	public String createHRPage(){
		return "/common/company/createHR";
	}

	@GetMapping("/followsPage")
	public String followsPage(){
		return "/common/company/follows";
	}

	@GetMapping("/hrManagementPage")
	public String hrManagementPage(){
		return "/common/company/hrManagement";
	}

	@GetMapping("/memberPage")
	public String memberPage(){
		return "/common/company/member";
	}

	@GetMapping("/memberOrderPage")
	public String memberOrderPage(){
		return "/common/company/memberOrder";
	}

	@GetMapping("/memberManagement")
	public String memberManagement(){
		return "/common/account/memberManagement";
	}
}
